package strategy

import "fmt"

type Traveler struct {
	name   string
	travel Travel
}

func CreateTraveler(name string, travel Travel) *Traveler {
	res := new(Traveler)
	res.name = name
	res.travel = travel
	return res
}

func (traveler *Traveler) GoOut() {
	fmt.Println(traveler.name + " go out by " + traveler.travel.transportation())
}
